//
//  AdViewController.h
//  admobandiad
//
//  Created by apple on 11-4-11.
//  Copyright 2011 IFunSoft. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <iAd/iAd.h>
#import "AdMobDelegateProtocol.h"

@protocol AdViewControllerDelegate;

@interface AdViewController : UIViewController <ADBannerViewDelegate, AdMobDelegate>
{
	id <AdViewControllerDelegate>	delegate;
	
	//ADBannerView Transformations:
	CGAffineTransform transformLast, transformLeft, transformRight;
	
	//Banners:
	id								adBannerView;
	AdMobView*						adMobAd;
	

}



@property (nonatomic, assign) id <AdViewControllerDelegate> delegate;

- (id)initWithMasterView:(UIView*)newMasterView;
- (void)rotateBannerView:(UIDeviceOrientation)toDeviceOrientation;
- (void)updateBannerViewOrientation;


@property (nonatomic,readwrite) bool isRemoveAd;

+(void) setRemoveAdState:(bool)remove;
+(bool) getRemoveAdStatus;


@end

@protocol AdViewControllerDelegate

- (void)adController:(AdViewController*)controller didLoadiAd:(id)iadBanner;
- (void)adController:(AdViewController*)controller didFailedToRecieveiAd:(id)iadBanner;

- (void)adController:(AdViewController*)controller didLoadAdMobAd:(AdMobView*)adMobBanner;
- (void)adController:(AdViewController*)controller didFailedToRecieveAdMobAd:(AdMobView*)adMobBanner;

@end

